<template>
  <div>
    <iframe src="http://180.97.207.91:9090/webroot/decision/v5/design/report/share/d766c1b64c9d4bac90844ce3f4c59aab?link=eyJhbGciOiJIUzI1NiJ9.eyJyZXBvcnRJZCI6ImQ3NjZjMWI2NGM5ZDRiYWM5MDg0NGNlM2Y0YzU5YWFiIiwidXNlcklkIjoiYjVmMGMyZWUtNjQwZi00MDM5LWE0ZDQtOTE4YjU1MzU0ODk4IiwianRpIjoiand0In0.cyWQALUn3KddxXq4ddmGq7cCtQUjHTpbkYxv0RkcUlI" id="myiframe" frameborder="0" rameborder="0"
      align="left"
      scrolling="no"
      width="100%" height="600"
      onload="changeFrameHeight"
    ></iframe>
  </div>
</template>

<script>

export default {
  mounted() {
    window.onresize = () => (() => {
      this.changeFrameHeight();
    })();
  },
  methods: {
    changeFrameHeight() {
      const ifm = document.getElementById('iframepage');
      ifm.height = document.documentElement.clientHeight;
    },
  },
};
</script>

<style>

</style>
